package com.atguigu.keyword;

public class Triangle {
    private static final String NAME = "三角形";
    private final int a ;
    private final int b;
    private final int c ;

    public Triangle(){//此时一般不写无参构造，如果要写，必须手动指定a,b,c的值
        a = 1;
        b = 1;
        c = 1;
    }
    public Triangle(int a,int b,int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    @Override
    public String toString() {
        return "Triangle{" +
                "a=" + a +
                ", b=" + b +
                ", c=" + c +
                '}';
    }
}
